USE [temp_frame]
GO

/****** Object:  Table [dbo].[BasePower]    Script Date: 07/03/2012 18:24:44 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[BasePower](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NULL,
	[SymCode] [varchar](50) NULL,
	[Descr] [text] NULL,
	[Url] [varchar](300) NULL,
	[Path] [varchar](300) NULL,
	[Pathname] [varchar](300) NULL,
	[ParentSysCode] [varchar](50) NULL,
	[BaseMenuSysCode] [varchar](50) NULL,
	[IsLeaf] [int] NULL,
	[IsActive] [int] NULL,
	[lineno] [bigint] NULL,
	[CreatedAt] [datetime] NULL,
	[CreatedBy] [varchar](50) NULL,
	[CreatedByName] [varchar](50) NULL,
	[UpdatedAt] [datetime] NULL,
	[UpdatedBy] [varchar](50) NULL,
	[UpdatedByName] [char](10) NULL,
 CONSTRAINT [PK_basePower] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模块文件入口完整的URL路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'Url'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结点路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'Path'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'父结点id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'ParentSysCode'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关联菜单表id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'BaseMenuSysCode'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否启用（0为：停用；1为：启用）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'IsActive'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'lineno'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'CreatedAt'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'CreatedBy'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更新时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'UpdatedAt'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更新人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BasePower', @level2type=N'COLUMN',@level2name=N'UpdatedBy'
GO

ALTER TABLE [dbo].[BasePower] ADD  CONSTRAINT [DF_basePower_isactive]  DEFAULT ((1)) FOR [IsActive]
GO

